package com.webproject.core.dao;

import com.webproject.core.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * User mapper
 */
@Mapper
public interface UserMapper {
    /**
     * 增
     */
    Integer insert(User user);

    /**
     * 通过名称查找用户
     */
    User findUserByName(@Param("username") String username);

    /**
     * 通过id查找
     */
    User findUserById(String id);
}
